package tests;

import common.Utils;
import org.openqa.selenium.By;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: WJW
 * Date: 2024-10-10
 * Time: 20:16
 */
public class LoginPage extends Utils {
    public static String url = "https://kuxuezhang.com./index";
    public LoginPage() {
        super(url);
    }


    public void loginPageRight() throws InterruptedException {
        //通过检查页面元素是否存在来检查页面加载成功与否
        driver.findElement(By.cssSelector("#app > div.ku-main-layout > div.ku-main-layout-header > div.ku-main-layout-nav > div > div > div.el-col.el-col-17 > div > ul > li:nth-child(1)"));
        //登录
        driver.findElement(By.cssSelector("#app > div.ku-main-layout > div.ku-main-layout-header > div.ku-main-layout-nav > div > div > div.el-col.el-col-5 > div > div.ku-navbar-users.button > span"));
        Thread.sleep(3000);
        driver.quit();
    }
}
